class Animal{
    constructor(id,name){
        this.id = id
        this.name = name
    }
    eat(){

    }
}

class Dog extends Animal{

}

const dog = new Dog()
dog.eat()